<div class="navbar">
  <div class="navbar-inner">
  	<?php $this->widget('zii.widgets.CMenu',array(
  	  'encodeLabel'=>false,
			'items'=>array(
				array('label'=>'Trang chủ', 'url'=>array('/site/index')),
				array('label'=>'Bài tập', 'url'=>array('/admin/issue'),'active'=>Yii::app()->controller->id=='issue'),
				array('label'=>'Giáo án', 'url'=>array('/admin/lesson'),'active'=>Yii::app()->controller->id=='lesson'),
				array('label'=>'Đề thi', 'url'=>array('/admin/exam'),'active'=>Yii::app()->controller->id=='exam'),
				array('label'=>'Người dùng', 'url'=>array('/admin/user'),'active'=>Yii::app()->controller->id=='user'),
				array('label'=>'Nhật ký hoạt động', 'url'=>array('/admin/log'),'active'=>Yii::app()->controller->id=='log'),
				array('label'=>'Báo cáo', 'url'=>array('/admin/report'),'active'=>Yii::app()->controller->id=='report'),
				array('label'=>'Phân quyền', 'url'=>array('/admin/adminpermission'),'active'=>Yii::app()->controller->id=='adminpermission'),
				array('label'=>'Danh mục <b class="caret"></b>', 'url'=>array('javascript: void(0)'),'itemOptions'=>array('class'=>'dropdown'),
				  'active'=>Yii::app()->controller->id=='grade'||Yii::app()->controller->id=='subject'||Yii::app()->controller->id=='topic'||Yii::app()->controller->id=='document',
				  'linkOptions'=>array('class'=>'dropdown-toggle','data-toggle'=>'dropdown'),'items'=>array(
				    array('label'=>'Lớp học','url'=>array('/admin/grade'),'active'=>Yii::app()->controller->id=='grade'),
				    array('label'=>'Môn học','url'=>array('/admin/subject'),'active'=>Yii::app()->controller->id=='subject'),
				    array('label'=>'Chuyên đề','url'=>array('/admin/topic'),'active'=>Yii::app()->controller->id=='topic'),
				    array('label'=>'','itemOptions'=>array('class'=>'divider')),
				    array('label'=>'Tài liệu','url'=>array('/admin/document'),'active'=>Yii::app()->controller->id=='document'),
				  ),
				  'submenuOptions'=>array('class'=>'dropdown-menu')
				),
				array('label'=>'Thoát','url'=>array('/site/logout'))
			),
			'htmlOptions'=>array('class'=>'nav'),
		)); ?>
  </div>
</div>